package com.msb.strategy;

import java.util.Arrays;

/**
 * @Auther： WangLei
 * @Date： 2021/9/9-09-09-22:40
 * @Description: com.msb.strategy
 * @version: 1.0
 */
public class StrategyOne {
    StrategyOne s;
    public static void main(String[] args) {
        Cat[] a = {new Cat(6),new Cat(3),new Cat(7)};
        Sorter<Cat> so = new Sorter<>();
        //so.sort(a);
        so.sort(a,new CatWeightStrategy());

        System.out.println(Arrays.toString(a));
    }

}
